<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Float布局示例</title>
  <style>
    .container {
      width: 100%;
      overflow: hidden;
      /* 清除浮动 */
    }

    .column {
      width: 48%;
      margin: 1%;
      padding: 10px;
      box-sizing: border-box;
    }

    .left {
      float: left;
      background-color: lightblue;
    }

    .right {
      float: right;
      background-color: lightgreen;
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="column left">
      <h2>左侧列</h2>
      <p>这里是左侧的内容。左侧列通常用于显示主要内容或导航菜单。</p>
    </div>
    <div class="column right">
      <h2>右侧列</h2>
      <p>这里是右侧的内容。右侧列通常用于显示辅助信息或广告。</p>
    </div>
  </div>
</body>

</html>